<div class="toolbar">
	<h1>新增菜谱</h1>
	<a class="button back" onclick='category.showDetail({JSON.stringify($T)},"pop-out");''>菜谱维护</a>
</div>
<div class="content">
	<form id="categoryForm" name="categoryForm" method="post">
		<ul class="rounded">
				<li>
					<div class="label">菜名</div>
					<div class="field"><input type="text" name="name"  maxlength="20" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>
				<li>
					<div class="label">单价</div>
					<div class="field"><input type="number" name="price" maxlength="10" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>				
				<li>
					<div class="label">单位</div>
					<div class="field"><input type="text" name="unit" maxlength="10" autocapitalize="off"></div>
					<div class="clear"></div>
				</li>				
		</ul>
		<div style="text-align: center">
			<a href='javascript:foodList.add($("input:text[name=\"name\"]").val(),$("input[name=\"price\"]").val(),$("input:text[name=\"unit\"]").val(),{JSON.stringify($T)})' class="button-green" style="width: 270px">保存</a>
		</div>
	</form>
</div>